package general;

public class OSDetection {
	
	public static final int UNKNOWN_OS = 0;
	public static final int MS_WINDOWS = 1;
	public static final int GNU_LINUX = 2;
	
	public static String SLASH;
	
	public static int getOS(){
		String myOS = System.getProperty("os.name").toUpperCase();
		
		if( myOS.indexOf("LINUX") != -1 ){
			SLASH = "/";
			return GNU_LINUX;
		} else if( myOS.indexOf("WINDOWS") != -1 ){
			SLASH = "\\";
			return MS_WINDOWS;
			
		} else {
			return UNKNOWN_OS;
		}
		
	}
}
